.layout-container {

  .main-container {
    height: 100%;
    transition: margin-left .28s;
    margin-left: @sideBarWidth;
    overflow: auto;
  }
  .sidebar-container {
    width: @sideBarWidth !important;
    height: 100%;
    -webkit-transition: width .28s;
    transition: width 0.28s;
    background-color: @menuBg;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    .el-menu-item, .menu-title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      color: @subMenuActiveText;
      font-weight: 500;
      font-size: 15px;
      letter-spacing: 1px;
      font-family: Microsoft YaHei UI-Regular, Microsoft YaHei UI;
    }

    .el-menu-item .el-menu-tooltip__trigger {
      display: inline-block !important;
    }

    .el-menu-item.is-active {
      background-color: @menuActiveBg !important;
    }

    li.el-menu-item {
      &.is-active {
        background-color: @menuActiveBg !important;
      }
      &:hover {
        background-color: @menuActiveBg !important;
      }
    }

    // menu hover
    .sub-menu-title-noDropdown,
    .el-sub-menu__title {
      &:hover {
        background-color: @menuActiveBg !important;
      }
    }

    & .is-active > .el-sub-menu__title {
      color: @subMenuActiveText !important;
    }

    & .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      min-width: @sideBarWidth !important;

      &:hover {
        background-color: rgba(0, 0, 0, 0.06) !important;
      }
    }

    & .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      background-color: @subMenuBg !important;

      //&:hover {
      //  background-color: @subMenuHover !important;
      //}
    }
    & .nest-menu .el-menu-item {
      & .is-active {
        background-color: #1D7AD8 !important;
      }
    }
  }
  .el-menu--collapse .el-menu .el-sub-menu {
    min-width: @sideBarWidth !important;
  }
}

.hideSidebar {
  .sidebar-container {
    width: @sideBarMinWidth !important;
  }

  .main-container {
    margin-left: @sideBarMinWidth;
  }

  .sub-menu-title-noDropdown {
    padding: 0 !important;
    position: relative;
    .el-tooltip {
      padding: 0 !important;
      .svg-icon {
        margin-left: 20px;
      }
    }
  }

  .el-sub-menu {
    overflow: hidden;
    &>.el-sub-menu__title {
      padding: 0 !important;
      .svg-icon {
        margin-left: 20px;
      }

    }
  }

  .el-menu--collapse {
    .el-sub-menu {
      &>.el-sub-menu__title {
        &>span {
          height: 0;
          width: 0;
          overflow: hidden;
          visibility: hidden;
          display: inline-block;
        }
        &>i {
          height: 0;
          width: 0;
          overflow: hidden;
          visibility: hidden;
          display: inline-block;
        }
      }
    }
  }
}

